/*!
    \file  main.c 
    \brief this file realizes the MSC host
    
    \version 2018-03-26, V1.0.0, demo for GD32E10x
*/

#include "os_obj.h" 
#include "pincfg.h" 
#include "board.h"

/*!
    \brief      main routine
    \param[in]  none
    \param[out] none
    \retval     none
*/
int main(void)
{
    SystemCoreClockUpdate();
    
    /*RTOS start*/
    osKernelInitialize(); // Initialize CMSIS-RTOS

    Init_Thread();

    if (osKernelGetState() == osKernelReady) 
    {
       osKernelStart(); // Start thread execution
    }

    while (1) {
        osDelay(3000);
    }
}
